// 扩展 req 和 res

var url = require("url"),
    fs = require("fs"),
    mim = require("mime"),
    _ = require("underscore");

module.exports=function (req,res) {
    var urlObj=url.parse(req.url.toLowerCase(),true);

    req.query = urlObj.query;
    req.pathname = urlObj.pathname;

    req.method = req.method.toLowerCase();

    res.render = function (filename, tplData) {
        
    };
}